
<?php
/**
 * Created by PhpStorm.
 * User: Wenda Fang
 * Date: 14-1-4
 * Time: 下午1:17
 * Desc: The footer of the website including copyright and a brief introduction of our team
 */
?>

</div>
<!-- FOOTER -->
<footer class="footer ">
    <a href="about.html">关于我们</a>
    <p>Copyright &copy 2013 湖北大学琴园科技创新团队</p>
    <p>Powered By WendaFang and JunwenYu Version 1.0.0</p>
</footer>

<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.bootcss.com/jquery/1.10.2/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="http://cdn.bootcss.com/twitter-bootstrap/3.0.3/js/bootstrap.min.js"></script>
<script src="../style/js/sidebar-follow-jquery.js"></script>
<script>
/*    *//* <![CDATA[ *//*
    (new SidebarFollow()).init({
        element: jQuery('.navbar'),
        distanceToTop: 0
    });
    *//* ]]> */
    //设置主页
    $("#addHomePage").click(function () {
        if (document.all) {//设置IE
            document.body.style.behavior = 'url(#default#homepage)';
            document.body.setHomePage(document.URL);

        }
        else
        {//网上可以找到设置火狐主页的代码，但是点击取消的话会有Bug，因此建议手动设置
            alert("设置首页失败，请手动设置！");
        }
    });

    //自动更新目前收录的网站总数
$(document).ready(function() {
    updateWebsite();
    // 每隔一秒更新数据
    setTimeout("updateWebsite()", 1000);
});


    function updateWebsite() {
        //获得你的数据
        $.ajax({
            url: "../admin/sitemanage.php?action=amount",
            data: "",
            cache:false,
            dataType:"JSON",
            success: function(data){
                $(".website-amount").html("共有"+data+" 个学习站点收录");
            }
        });
    }
</script>
</body>
</html>
